package com.financing.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IFpFundCompanyDao;
import com.financing.platform.dto.FpFundCompanyDTO;
import com.financing.platform.service.IFpFundCompanyService;

/**
 * @Description:Service实现类
 * @version 1.0
 * @created caojiayao
 */
 
@Service(value="fpFundCompanyService")
public class FpFundCompanyServiceImpl implements IFpFundCompanyService {
    @Autowired
	private IFpFundCompanyDao fpFundCompanyDao;
	
	
	@Override
	public FpFundCompanyDTO getFpFundCompany(FpFundCompanyDTO dto) {
		return fpFundCompanyDao.getFpFundCompany(dto);
	}
	
	
	@Override
	public Integer insertFpFundCompany(FpFundCompanyDTO dto) {
		return fpFundCompanyDao.insertFpFundCompany(dto);
	}

	
	@Override
	public Integer updateFpFundCompany(FpFundCompanyDTO dto) {
		return fpFundCompanyDao.updateFpFundCompany(dto);
	}
	
	@Override
	public Integer delFpFundCompany(Integer id) {
		return fpFundCompanyDao.delFpFundCompany(id);
	}
	
	@Override
	public List<FpFundCompanyDTO> listFpFundCompany(FpFundCompanyDTO dto) {
		return fpFundCompanyDao.listFpFundCompany(dto);
	}
	
	@Override
	public Integer countFpFundCompany(FpFundCompanyDTO dto){
		return fpFundCompanyDao.countFpFundCompany(dto);
	}
	
	public FpFundCompanyDTO getFpFundCompanyByManagerId(String managerId){
		return fpFundCompanyDao.getFpFundCompanyByManagerId(managerId);
	}
	
	public List<FpFundCompanyDTO> listFpFundCompanyByManagerId(String managerId){
		return fpFundCompanyDao.listFpFundCompanyByManagerId(managerId);
	}
	
	public List<FpFundCompanyDTO> getFpFundCompanyByFundId(String managerId){
		return fpFundCompanyDao.getFpFundCompanyByFundId(managerId);
	}
}
